<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!-- The path assumes that this XSL file will reside on level below the XSL directory -->
	<xsl:include href="../xsl_include/global_xsl_header_inc.xsl" />
	<xsl:strip-space elements="*" />
	<!-- Begin XSL Template Specifications-->
	<xsl:template name="leftNavigation">
		<xsl:param name="primaryNav" />
		<xsl:param name="secondaryNav" />
		<xsl:param name="tertiaryNav" />
		<xsl:for-each select="application_header/navigation/context">
			<xsl:if test="$primaryNav = id">
				<!-- ARE THERE SECONDARY MENU ITEMS -->
				<xsl:choose>
					<xsl:when test="sub_context"></xsl:when>
					<xsl:otherwise>
						<xsl:attribute name="style">
							<xsl:text>display:none;</xsl:text>
						</xsl:attribute>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:if>
		</xsl:for-each>
		<!--openNavTable - Collapsed (Closed) state of side navigation-->
		<xsl:call-template name="collapsedNav" />
		<!--navTable - Expanded (Open) state of side navigation-->
		<xsl:call-template name="openNav">
			<xsl:with-param name="primaryNav" select="$primaryNav" />
			<xsl:with-param name="secondaryNav" select="$secondaryNav" />
			<xsl:with-param name="tertiaryNav" select="$tertiaryNav" />
		</xsl:call-template>
	</xsl:template>
	
	<xsl:template name="primaryNavigation">
		<xsl:param name="primaryNav" />
		<table border="0" cellpadding="0" cellspacing="0" height="100%" background='styleguide/images/dot.gif'>
			<tr>
				<!-- DISPLAY PRIMARY NAVIGATION TABS -->
				<xsl:for-each select="application_header/navigation/context">
					<xsl:choose>
						<xsl:when test="$primaryNav = id">
							<td class="fdsSelectedPrimary" nowrap="nowrap" height="100%">
								<a class="fdsSelectedPrimaryLink">
									<xsl:attribute name="href">
										<xsl:value-of select="action" />
									</xsl:attribute>
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
									<xsl:value-of select="label" />
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
								</a>
							</td>
							<td width="1px" class="fdsBlankPlace" onmouseover='placeDescBar2.className="fdsUnSelectedPrimaryDescBar";
								placeDescBar1.className="fdsUnSelectedPrimaryDescBar";
								placeDesc.className="fdsUnSelectedPrimaryDesc"; placeDesc.innerHTML=" ";' onmouseout='placeDescBar2.className="fdsSelectedPrimaryDescBar";
								placeDescBar1.className="fdsSelectedPrimaryDescBar";
								placeDesc.className="fdsSelectedPrimaryDesc";
								placeDesc.innerHTML=selectedPrimaryDesc.value;'>
								<img src='styleguide/images/dot.gif' width="1px" />
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td class="fdsUnSelectedPrimary" nowrap="nowrap" height="100%" onmouseout='placeDescBar2.className="fdsSelectedPrimaryDescBar";
							placeDescBar1.className="fdsSelectedPrimaryDescBar";
							placeDesc.className="fdsSelectedPrimaryDesc";
							this.className="fdsUnSelectedPrimary";
							placeDesc.innerHTML=selectedPrimaryDesc.value;'>
								<xsl:attribute name="onMouseOver">
									<xsl:text disable-output-escaping="yes">
									placeDescBar2.className='fdsUnSelectedPrimaryDescBar';
									placeDescBar1.className='fdsUnSelectedPrimaryDescBar';
									placeDesc.className='fdsUnSelectedPrimaryDesc';
									this.className='fdsUnSelectedPrimaryNoBorder';
									placeDesc.innerHTML=&quot;</xsl:text>
									<xsl:value-of select="description" />
									<xsl:text disable-output-escaping="yes">&quot;;</xsl:text>
								</xsl:attribute>
								<a class="fdsUnSelectedPrimaryLink">
									<xsl:attribute name="href">
										<xsl:value-of select="action" />
									</xsl:attribute>
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
									<xsl:value-of select="label" />
									<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
								</a>
							</td>
							<td width="1px" class="fdsBlankPlace" onmouseover='placeDescBar2.className="fdsUnSelectedPrimaryDescBar";
							placeDescBar1.className="fdsUnSelectedPrimaryDescBar";
							placeDesc.className="fdsUnSelectedPrimaryDesc";
							placeDesc.innerHTML=" ";' onmouseout='placeDescBar2.className="fdsSelectedPrimaryDescBar";
							placeDescBar1.className="fdsSelectedPrimaryDescBar";
							placeDesc.className="fdsSelectedPrimaryDesc";
							placeDesc.innerHTML=selectedPrimaryDesc.value;'>
								<img src='styleguide/images/dot.gif' width="1px" />
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
				<td class="fdsBlankPlace">
					<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
				</td>
				<td width="100%" class="fdsBlankPlace">
					<img src='styleguide/images/dot.gif' width="1px" />
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template name="secondaryNavigation">
		<xsl:param name="secondaryNav" />
		<xsl:param name="tertiaryNav" />
		<table border="0" cellpadding="2" cellspacing="0" width="190">
			<!-- LOOP THROUGH EACH PRIMARY TAB -->
			<xsl:for-each select="application_header/navigation/context">
				<xsl:if test="$primaryNav = id">
					<!-- LOOP THROUGH EACH SECONDARY MENU ITEMS -->
					<xsl:for-each select="sub_context">
						<xsl:choose>
							<!-- EXPAND/COLLAPSE ICON IS NEEDED -->
							<xsl:when test="sub_context">
								<!-- DETRIMINE IF SECONDARY NAV (WITH SUB-MENU) IS SELECTED -->
								<xsl:choose>
									<xsl:when test="$secondaryNav = id">
										<!-- CLOSED SELECTED -->
										<tr>
											<!-- TR ID USED IN THE EXPAND JAVASCRIPT FUNCTION -->
											<xsl:attribute name="id">
												<xsl:value-of select="id" />
												<xsl:text>Collapse</xsl:text>
											</xsl:attribute>
											<!-- TR STYLE DISPLAY -->
											<xsl:choose>
												<xsl:when test="$secondaryNav = id">
													<xsl:attribute name="style">
														<xsl:text>display:none;</xsl:text>
													</xsl:attribute>
												</xsl:when>
												<xsl:otherwise>
													<!-- remove 'inline' for Safari/Firefox
													<xsl:attribute name="style">
														<xsl:text>display:inline;</xsl:text>
													</xsl:attribute>
													-->
												</xsl:otherwise>
											</xsl:choose>
											<td class="fdsNavSelectedMenuGroup" style="border-top:1px solid white;border-bottom:1px solid white;">
												<table border="0" width="100%" cellpadding="2" cellspacing="0" marginwidth="0" marginheight="0">
													<tr>
														<td class="fdsNavSelectedMenuGroup"  valign="top" style="border:0px none white;">
															<a border="0"> 
																<img alt='Collapse' border="0" src="styleguide/images/NavigationCollapsed.gif">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Expand.style.display='';</xsl:text>
																		<xsl:value-of select="id" />
																		<xsl:text>Collapse.style.display='none';</xsl:text>
																	</xsl:attribute>
																</img>
															</a>
														</td>
														<td colspan="2" class="fdsNavSelectedMenuGroup" width="100%" align="left" style="border:0px none white; vertical-align:top;">
															<a class="fdsNavSelectedMenuGroup" href="javascript:;"> <!-- href property needed to see :hover style --> 
																<span class="fdsNavLevel1">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Expand.style.display='';</xsl:text>
																		<xsl:value-of select="id" />
																		<xsl:text>Collapse.style.display='none';</xsl:text>
																	</xsl:attribute>
																	<xsl:value-of select="label" />
																</span>
															</a>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<!-- OPEN SELECTED -->
										<tr>
											<!-- TR ID USED IN THE EXPAND JAVASCRIPT FUNCTION -->
											<xsl:attribute name="id">
												<xsl:value-of select="id" />
												<xsl:text>Expand</xsl:text>
											</xsl:attribute>
											<!-- TR STYLE DISPLAY -->
											<xsl:choose>
												<xsl:when test="$secondaryNav = id">
													<!-- remove 'inline' for Safari/Firefox
													<xsl:attribute name="style">
														<xsl:text>display:inline;</xsl:text>
													</xsl:attribute>
													-->
												</xsl:when>
												<xsl:otherwise>
													<xsl:attribute name="style">
														<xsl:text>display:none;</xsl:text>
													</xsl:attribute>
												</xsl:otherwise>
											</xsl:choose>
											<td class="fdsNavSelectedMenuGroup" style="border-top:1px solid white;border-bottom:1px solid white;"> <!---->
												<table border="0" width="100%" cellpadding="2" cellspacing="0" marginwidth="0" marginheight="0">
													<tr>
														<td class="fdsNavSelectedMenuGroup" valign="top" style="border:0px none white;">
															<a border="0"> 
																<img alt='Collapse' border="0" src="styleguide/images/NavigationExpanded.gif">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<xsl:text>Expand.style.display='none';</xsl:text>
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Collapse.style.display='';</xsl:text>
																	</xsl:attribute>
																</img>
															</a>
														</td>
														<td colspan="2" class="fdsNavSelectedMenuGroup" width="100%" align="left" style="border:0px none white; vertical-align:top;">
															<a class="fdsNavSelectedMenuGroup" href="javascript:;"> <!-- href property needed to see :hover style --> 
																<span class="fdsNavLevel1">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<xsl:text>Expand.style.display='none';</xsl:text>
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Collapse.style.display='';</xsl:text>
																	</xsl:attribute>
																	<xsl:value-of select="label" />
																</span>
															</a>
														</td>
													</tr>
													<!-- LOOP THROUGH EACH SUB-MENU WITHIN THE SECONDARY MENU ITEM -->
													<xsl:for-each select="sub_context">
														<xsl:choose>
															<xsl:when test="$tertiaryNav = id">
																<tr>
																	<td>
																		<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
																	</td>
																	<td class="fdsNavSelectedNode"  valign="top" style="border:0px none white; vertical-align:top;">
																		<img alt=""  src="styleguide/images/SelectedNodeArrow.gif" border="0" />
																	</td>
																	<td class="fdsNavSelectedNode" width="100%" align="left" style="border:0px none white;">
																		<a class="fdsNavSelectedNode">
																			<xsl:attribute name="href">
																				<xsl:value-of select="action" />
																			</xsl:attribute>
																			<xsl:value-of select="label" />
																		</a>
																	</td>
																</tr>
															</xsl:when>
															<xsl:otherwise>
																<tr>
																	<td>
																		<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
																	</td>
																	<td class="fdsNavSelectedMenuGroup"  valign="top" style="border:0px none white; vertical-align:middle;">
																		<img alt=""  src="styleguide/images/dot.gif" border="0" />
																	</td>
																	<td class="fdsNavSelectedMenuGroup" width="100%" align="left" style="border:0px none white;">
																		<a class="fdsNavSelectedMenuGroup">
																			<xsl:choose>
																				<!-- WHEN WORK_AREA CONTAINS A TARGET ATTRIBUTE -->
																				<xsl:when test="work_area/@target">
																					<xsl:attribute name="href">
																						<xsl:value-of select="work_area" />
																					</xsl:attribute>
																					<xsl:attribute name="target">
																						<xsl:value-of select="work_area/@target" />
																					</xsl:attribute>
																					<xsl:value-of select="label" />
																					<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
																					<img src="styleguide/images/new_window.gif" border="0" />
																				</xsl:when>
																				<xsl:otherwise>
																					<xsl:attribute name="href">
																						<xsl:value-of select="action" />
																					</xsl:attribute>
																					<xsl:value-of select="label" />
																				</xsl:otherwise>
																			</xsl:choose>
																		</a>
																	</td>
																</tr>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:for-each>
												</table>
											</td>
										</tr>
									</xsl:when>
									<xsl:otherwise>
										<!-- CLOSED UNSELECTED -->
										<tr>
											<!-- TR ID USED IN THE EXPAND JAVASCRIPT FUNCTION -->
											<xsl:attribute name="id">
												<xsl:value-of select="id" />
												<xsl:text>Collapse</xsl:text>
											</xsl:attribute>
											<!-- TR STYLE DISPLAY -->
											<xsl:choose>
												<xsl:when test="$secondaryNav = id">
													<xsl:attribute name="style">
														<xsl:text>display:none;</xsl:text>
													</xsl:attribute>
												</xsl:when>
												<xsl:otherwise>
													<!-- remove 'inline' for Safari/Firefox
													<xsl:attribute name="style">
														<xsl:text>display:inline;</xsl:text>
													</xsl:attribute>
													-->
												</xsl:otherwise>
											</xsl:choose>
											<td class="fdsNavUnSelectedNode"> <!--style="border-top:1px solid white;"-->
												<table border="0" width="100%" cellpadding="2" cellspacing="0" marginwidth="0" marginheight="0">
													<tr>
														<td class="fdsNavUnSelectedNode"  valign="top" style="border:0px none white;">
															<a border="0"> 
																<img alt='Collapse' border="0" src="styleguide/images/NavigationCollapsed.gif">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Expand.style.display='';</xsl:text>
																		<xsl:value-of select="id" />
																		<xsl:text>Collapse.style.display='none';</xsl:text>
																	</xsl:attribute>
																</img>
															</a>
														</td>
														<td colspan="2" class="fdsNavUnSelectedNode" width="100%" align="left" style="border:0px none white; vertical-align:top;">
															<a class="fdsNavUnSelectedNode" href="javascript:;"> <!--href property needed to see :hover style -->
																<span class="fdsNavLevel1">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Expand.style.display='';</xsl:text>
																		<xsl:value-of select="id" />
																		<xsl:text>Collapse.style.display='none';</xsl:text>
																	</xsl:attribute>
																	<xsl:value-of select="label" />
																</span>
															</a>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<!-- OPEN UNSELECTED-->
										<tr>
											<!-- TR ID USED IN THE EXPAND JAVASCRIPT FUNCTION -->
											<xsl:attribute name="id">
												<xsl:value-of select="id" />
												<xsl:text>Expand</xsl:text>
											</xsl:attribute>
											<!-- TR STYLE DISPLAY -->
											<xsl:choose>
												<xsl:when test="$secondaryNav = id">
													<!-- remove 'inline' for Safari/Firefox
													<xsl:attribute name="style">
														<xsl:text>display:inline;</xsl:text>
													</xsl:attribute>
													-->
												</xsl:when>
												<xsl:otherwise>
													<xsl:attribute name="style">
														<xsl:text>display:none;</xsl:text>
													</xsl:attribute>
												</xsl:otherwise>
											</xsl:choose>
											<td class="fdsNavUnSelectedNode"> <!--style="border-top:1px solid white;"-->
												<table border="0" width="100%" cellpadding="2" cellspacing="0" marginwidth="0" marginheight="0">
													<tr>
														<td class="fdsNavUnSelectedNode"  valign="top" style="border:0px none white;">
															<a border="0"> 
																<img alt='Collapse' border="0" src="styleguide/images/NavigationExpanded.gif">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<xsl:text>Expand.style.display='none';</xsl:text>
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Collapse.style.display='';</xsl:text>
																	</xsl:attribute>
																</img>
															</a>
														</td>
														<td colspan="2" class="fdsNavUnSelectedNode" width="100%" align="left" style="border:0px none white; vertical-align:top;">
															<a class="fdsNavUnSelectedNode" href="javascript:;"> <!-- href property needed to see :hover style --> 
																<span class="fdsNavLevel1">
																	<xsl:attribute name="onClick">
																		<xsl:value-of select="id" />
																		<xsl:text>Expand.style.display='none';</xsl:text>
																		<xsl:value-of select="id" />
																		<!-- remove 'inline' for Safari/Firefox -->
																		<xsl:text>Collapse.style.display='';</xsl:text>
																	</xsl:attribute>
																	<xsl:value-of select="label" />
																</span>
															</a>
														</td>
													</tr>
													<!-- LOOP THROUGH EACH SUB-MENU WITHIN THE SECONDARY MENU ITEM -->
													<xsl:for-each select="sub_context">
														<tr>
															<td>
																<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
															</td>
															<td class="fdsNavUnSelectedNode"  valign="top" style="border:0px none white; vertical-align:middle;">
																<img alt="" width="8" src="styleguide/images/dot.gif" border="0" />
															</td>
															<td class="fdsNavUnSelectedNode" width="100%" align="left" style="border:0px none white;">
																<a class="fdsNavUnSelectedNode">
																	<xsl:choose>
																		<!-- WHEN WORK_AREA CONTAINS A TARGET ATTRIBUTE -->
																		<xsl:when test="work_area/@target">
																			<xsl:attribute name="href">
																				<xsl:value-of select="work_area" />
																			</xsl:attribute>
																			<xsl:attribute name="target">
																				<xsl:value-of select="work_area/@target" />
																			</xsl:attribute>
																			<xsl:value-of select="label" />
																			<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
																			<img src="styleguide/images/new_window.gif" border="0" />
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:attribute name="href">
																				<xsl:value-of select="action" />
																			</xsl:attribute>
																			<xsl:value-of select="label" />
																		</xsl:otherwise>
																	</xsl:choose>
																</a>
															</td>
														</tr>
													</xsl:for-each>
												</table>
											</td>
										</tr>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:when>
							<!-- SINGLE MENU ELEMENT - NO EXPAND/COLLAPSE ICON NEEDED -->
							<xsl:otherwise>
								<xsl:choose>
									<xsl:when test="$secondaryNav = id">
										<tr id="introduction" style="">
											<td class="fdsNavSelectedNode" style="border-top:1px solid white;border-bottom:1px solid white;">
												<table border="0" width="100%" cellpadding="2" cellspacing="0" marginwidth="0" marginheight="0">
													<tr>
														<td class="fdsNavSelectedNode"  valign="top" style="border:0px none white;vertical-align:top;">
															<img alt="" src="styleguide/images/SelectedNodeArrow.gif" border="0" />
														</td>
														<td class="fdsNavSelectedNode" width="100%" align="left" style="border:0px none white;">
															<a class="fdsNavSelectedNode">
																<xsl:attribute name="href">
																	<xsl:value-of select="action" />
																</xsl:attribute>
																<span class="fdsNavLevel1">
																	<xsl:value-of select="label" />
																</span>
															</a>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</xsl:when>
									<xsl:otherwise>
										<tr id="introduction" style="">
											<td class="fdsNavUnSelectedNode"> <!--style="border-top:1px solid white;"-->
												<table border="0" width="100%" cellpadding="2" cellspacing="0" marginwidth="0" marginheight="0">
													<tr>
														<td class="fdsNavUnSelectedNode"  valign="top" style="border:0px none white;vertical-align:middle;">
															<img alt=""  width="8" src="styleguide/images/dot.gif" border="0" />
														</td>
														<td class="fdsNavUnSelectedNode" width="100%" align="left" style="border:0px none white;">
															<a class="fdsNavUnSelectedNode">
																<xsl:choose>
																	<!-- WHEN WORK_AREA CONTAINS A TARGET ATTRIBUTE -->
																	<xsl:when test="work_area/@target">
																		<xsl:attribute name="href">
																			<xsl:value-of select="work_area" />
																		</xsl:attribute>
																		<xsl:attribute name="target">
																			<xsl:value-of select="work_area/@target" />
																		</xsl:attribute>
																		<span class="fdsNavLevel1"><xsl:value-of select="label" /></span>
																		<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
																		<img src="styleguide/images/new_window.gif" border="0" />
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:attribute name="href">
																			<xsl:value-of select="action" />
																		</xsl:attribute>
																		<span class="fdsNavLevel1"><xsl:value-of select="label" /></span>
																	</xsl:otherwise>
																</xsl:choose>															
															
															
															<!--
																<xsl:attribute name="href">
																	<xsl:value-of select="action" />
																</xsl:attribute>
																<span class="fdsNavLevel1">
																	<xsl:value-of select="label" />
																</span> -->
																
																
																
																
															</a>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:for-each>
				</xsl:if>
			</xsl:for-each>
			<tr height="1px">
				<td>
					<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
				</td>
			</tr>
			<tr height="100%">
				<td height="100%">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
						<tr height="100%">
							<td height="100%">
								<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</xsl:template>
	
	
	<xsl:template name="breadCrumbs">
		<xsl:param name="prefix">You Are Here</xsl:param>
		<xsl:param name="delimeter">
			<xsl:text> --> </xsl:text>
		</xsl:param>
		<xsl:param name="primaryNav" />
		<xsl:param name="secondaryNav" />
		<xsl:param name="tertiaryNav" />
		<!-- WRITE BREAD CRUMBS -->
		<xsl:value-of select="$prefix" />
		<xsl:value-of select="$delimeter" />
		<xsl:for-each select="/application_header/navigation/context">
			<xsl:if test="$primaryNav = id">
				<!-- ARE THERE SECONDARY MENU ITEMS -->
				<xsl:choose>
					<xsl:when test="sub_context">
						<a>
							<xsl:attribute name="href">
								<xsl:value-of select="action" />
							</xsl:attribute>
							<xsl:value-of select="label" />
						</a>
						<xsl:value-of select="$delimeter" />
						<xsl:for-each select="sub_context">
							<xsl:if test="$secondaryNav = id">
								<xsl:choose>
									<xsl:when test="sub_context">
										<a>
											<xsl:attribute name="href">
												<xsl:value-of select="action" />
											</xsl:attribute>
											<xsl:value-of select="label" />
										</a>
										<xsl:value-of select="$delimeter" />
										<xsl:for-each select="sub_context">
											<xsl:if test="$tertiaryNav = id">
												<xsl:value-of select="label" />
											</xsl:if>
										</xsl:for-each>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="label" />
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:for-each>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="label" />
					</xsl:otherwise>
				</xsl:choose>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
	
	
	<xsl:template name="collapsedNav">
		<table id="openNavTable" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"
			style="display:none;">
			<tr>
				<td height="23px">
					<a href="javascript:expandNavigation();">
						<img width="20" height="23" alt="" src="styleguide/images/open_menu_top.gif" border="0" />
					</a>
				</td>
			</tr>
			<tr>
				<td onclick="javascript:expandNavigation();">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
						<tr>
							<td bgcolor="#354560" width="16px" valign="middle">
								<img alt="" border="0" height="149px" width="16px" src="styleguide/images/opennav.gif" />
							</td>
							<td bgcolor="#C4CFE1" width="1px">
								<img alt="" border="0" height="1px" width="1px" src='styleguide/images/dot.gif' />
							</td>
							<td background="styleguide/images/menudots.gif" width="4px">
								<img alt="" border="0" height="1px" width="4px" src='styleguide/images/dot.gif' />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="23px">
					<a href="javascript:expandNavigation();">
						<img width="20" height="23" alt="" src="styleguide/images/open_menu_bottom.gif" border="0" />
					</a>
				</td>
			</tr>
		</table>
	</xsl:template>
	
	
	<xsl:template name="openNav">
		<xsl:param name="primaryNav" />
		<xsl:param name="secondaryNav" />
		<xsl:param name="tertiaryNav" />
		<table id="navTable" border="0" cellpadding="0" cellspacing="0" width="195" height="100%">
			<tr width="100%">
				<td colspan="3" height="23px">
					<a href="javascript:collapseNavigation();">
						<img width="194" height="23" alt="" src="styleguide/images/close_menu_top.gif" border="0" />
					</a>
				</td>
			</tr>
			<tr>
				<td valign="top">
					<xsl:call-template name="secondaryNavigation">
						<xsl:with-param name="secondaryNav" select="$secondaryNav" />
						<xsl:with-param name="tertiaryNav" select="$tertiaryNav" />
					</xsl:call-template>
				</td>
				<td bgcolor="#C4CFE1" width="1px" onclick="javascript:collapseNavigation();">
					<img alt="" border="0" height="1px" width="1px" src='styleguide/images/dot.gif' />
				</td>
				<td background="styleguide/images/menudots.gif" width="4px" onclick="javascript:collapseNavigation();">
					<img alt="" border="0" height="1px" width="4px" src='styleguide/images/dot.gif' />
				</td>
			</tr>
			
			<!--b06tja 9/16/2004 Added FedWay Logo Based on XML node-->
			<xsl:choose>
				<xsl:when test="/application_header/navigation/approval_logo/fedway">
				<tr width="100%">
					<td colspan="3" height="41px">
						<!--<a href="http://fd000xsarc01/fedway" target="_new">-->
						<a target="_blank">
							<xsl:attribute name="href">
								<xsl:value-of select="/application_header/navigation/approval_logo/fedway/@url"></xsl:value-of><xsl:text>&amp;appId=</xsl:text><xsl:value-of select="/application_header/navigation/approval_logo/fedway/@appId" />
							</xsl:attribute>
							<img width="96" height="41" alt="This application is FSG FedWay approved." src="styleguide/images/fedway_logo.gif" border="0"/>
						</a>
						<a href="javascript:collapseNavigation();">
							<img width="98" height="41" alt="Close Menu" src="styleguide/images/close_menu_bottom_fedway.gif" border="0" />
						</a>
					</td>
				</tr>
				</xsl:when>
				<xsl:otherwise>
				<tr width="100%">
					<td colspan="3" height="23px">
						<a href="javascript:collapseNavigation();">
							<img width="194" height="23" alt="" src="styleguide/images/close_menu_bottom.gif" border="0" />
						</a>
					</td>
				</tr>			
				</xsl:otherwise>
			</xsl:choose>
			
			
		</table>
	</xsl:template>
</xsl:stylesheet>
